home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 8 / Mac Magazin and MacEasy Magazine CD - Issue 08.iso / Sharewarebibliothek / Updater⁄Infos / Frontier 2.0 => 2.0.1 Upgrader / Install Files / DocServer Docs / file.copy < prev    next >
Text File  |  1993-02-25  |  1KB  |  24 lines

  1.  
  2. Verb    file.copy
  3. Syntax    file.copy (sourcepath, destpath)
  4. Parameters    sourcepath is a path name to the file or folder to be copied.
  5. destpath is a path name to the file or folder to which the file or folder at sourcepath is to be copied.
  6. Action    Copies the file or folder indicated by sourcepath to the destination defined in destpath.
  7. Returns    True
  8. Examples    file.copy ("System:ResEdit 2.1b3", "XP150:ResEdit")
  9.     » true
  10. The file “ResEdit 2.1b3” is copied to the volume “XP150” as “ResEdit”.
  11.  
  12. file.copy ("System:ResEdit 2.1b3", "XP150:")
  13.     » true
  14. The file “ResEdit 2.1b3” is copied to the volume “XP150” retaining its original name.
  15.  
  16. file.copy ("System:Utilities:", "XP150:Tools:")
  17.     » true
  18. If the folder “Tools” doesn’t exist, it is created. The contents of “Utilities” are then copied into “Tools”.
  19. Notes    • No prompt for confirmation will be made if file.copy attempts to overwrite an existing file.
  20. • If destpath defines a folder and sourcepath points to a file, the file will be copied into the folder.
  21. • A new folder will be created at destpath if one isn’t found there and if sourcepath and destpath define folders.
  22. See Also    file.move
  23. file.filteredCopy
  24.